package com.chen.service;

import com.chen.pojo.Building;
import com.chen.pojo.Dorm;

import java.util.List;

public interface DormService {
    List<Dorm> getDormList(Dorm dorm);

    void deleteDormById(int id);

    Dorm getIsDorm(Dorm dorm);

    void addDorm(Dorm dorm);
    //通过楼的id查宿舍
    List<Dorm> getDormListByAjax(Building building);

    //根据宿舍id查宿舍
    Dorm getDormById(int id);

    //改变宿舍已住人数
    void updateDormLiveNum(Dorm dorm);
}
